package top.sdaily.business.controller.engineer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import top.sdaily.business.model.engineer.Tag;
import top.sdaily.business.service.engineer.TagService;
import top.sdaily.core.mybatis.Conditions;
import top.sdaily.web.context.ReturnBody;

/**
 * Created by soya on 2017/2/9.
 */
@RestController
@RequestMapping("tag")
public class TagController {

    @Autowired
    TagService tagService;

    @GetMapping
    public ReturnBody getAll(){
        return ReturnBody.success().setData(tagService.findList(new Conditions(Tag.class)));
    }
}
